import Vue from 'vue'
import VueRouter from 'vue-router'
import About from '../pages/About'
import Home from '../pages/Home'

// 使用路由插件
Vue.use(VueRouter)

export default new VueRouter({
    routes: [
        {
            path: '/about', // 路径
            component: About, //组件
        },
        {
            path: '/home', // 路径
            component: Home, //组件
        },
    ]
})